package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.AppAttachment;

/**
 * 文件Mapper接口
 * 
 * @author ruoyi
 * @date 2023-02-28
 */
public interface AppAttachmentMapper 
{
    /**
     * 查询文件
     * 
     * @param id 文件主键
     * @return 文件
     */
    public AppAttachment selectAppAttachmentById(Long id);

    /**
     * 查询文件列表
     * 
     * @param appAttachment 文件
     * @return 文件集合
     */
    public List<AppAttachment> selectAppAttachmentList(AppAttachment appAttachment);

    /**
     * 新增文件
     * 
     * @param appAttachment 文件
     * @return 结果
     */
    public int insertAppAttachment(AppAttachment appAttachment);

    /**
     * 修改文件
     * 
     * @param appAttachment 文件
     * @return 结果
     */
    public int updateAppAttachment(AppAttachment appAttachment);

    /**
     * 删除文件
     * 
     * @param id 文件主键
     * @return 结果
     */
    public int deleteAppAttachmentById(Long id);

    /**
     * 批量删除文件
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppAttachmentByIds(Long[] ids);
}
